import request from '@/utils/request'

// 查询设备异常信息列表
export function listdeviceErrInfo(query) {
  return request({
    url: '/business/deviceErrInfo/list',
    method: 'get',
    params: query
  })
}

// 查询设备异常信息详细
export function getdeviceErrInfo(id) {
  return request({
    url: '/business/deviceErrInfo/' + id,
    method: 'get'
  })
}

// 新增设备异常信息
export function adddeviceErrInfo(data) {
  return request({
    url: '/business/deviceErrInfo',
    method: 'post',
    data: data
  })
}

// 修改设备异常信息
export function updatedeviceErrInfo(data) {
  return request({
    url: '/business/deviceErrInfo',
    method: 'put',
    data: data
  })
}

// 删除设备异常信息
export function deldeviceErrInfo(id) {
  return request({
    url: '/business/deviceErrInfo/' + id,
    method: 'delete'
  })
}

// 导出设备异常信息
export function exportdeviceErrInfo(query) {
  return request({
    url: '/business/deviceErrInfo/export',
    method: 'get',
    params: query
  })
}